package com.anycl.design.behavioral.visitor.instance;

/**
 * 文件元素
 */
public class FileElement implements Element {
    private String name;
    // 元素的访问权限
    private String perms;


    public FileElement(String name, String perms) {
        this.perms = perms;
        this.name = name;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public String getPerms() {
        return perms;
    }

    public String getName() {
        return name;
    }
}
